package com.huashi.dealer.core.runner;

import com.huashi.dealer.core.util.CaptchaUtil;
import com.huashi.dealer.modular.business.user.service.UserService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Slf4j
@RequiredArgsConstructor
@Component
public class SystemApplicationRunner implements ApplicationRunner {
    private final UserService userService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
//        userService.initializeSaToken();
        
        // 检查字体可用性
        log.info("开始检查字体可用性...");
        CaptchaUtil.checkFontAvailability();
        log.info("字体检查完成");
    }

}